<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			咨询列表<#if informationdisplayList??>（${informationdisplayList.totalElements!''}）</#if>
		    <span style="float:right;">
				<button class="layui-btn layui-btn-small green" href="/admin/informationdisplay/add.html" data-toggle="ajax"   data-href-index="/admin/informationdisplay/index"  data-height="80%" data-width="95%" data-title="创建新幻灯片">
					创建新的咨询
				</button>
			</span>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line">
				  <colgroup>
						<col width="35%">
						<col width="10%">
						<col width="10%">
						<col width="20%">
						<col width="25%">
					<col>
				  </colgroup>
				  <thead>
					<tr>
					  <th>标题</th>
					  <th>浏览量</th>
					  <th>发布人</th>
					  <th>发布时间</th>
					  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if informationdisplayList?? && informationdisplayList??>
					<#list informationdisplayList.content as list>
					<tr>
					  <td>${list.title!''}</td>
					  <td>${list.views!''}</td>
					  <td>${list.user!''}</td>
					  <td>${list.releasetime!''}</td>
					  <td style="white-space:nowrap;" nowrap="nowrap">
					  		<a href="/admin/informationdisplay/edit.html?id=${list.id!''}" data-toggle="ajax" data-href-index="/admin/informationdisplay/index" data-width="80%" data-height="95%" data-title="编辑">
					  			<i class="layui-icon">&#xe642;</i>
					  			编辑
					  		</a>
					  		<a href="/admin/informationdisplay/delete.html?id=${list.id!''}" style="margin-left:10px;" data-toggle="tip" data-title="请确认是否删除该咨询？">
					  			<i class="layui-icon" style="color:red;">&#x1006;</i>
					  			删除
					  		</a>
					  </td>
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>
	layui.use(['laypage', 'layer'], function(){
	  var $ = layui.jquery,
			  laypage = layui.laypage,
			  layer = layui.layer;
	  
	laypage({
			cont: 'page'
			,pages: <#if informationdisplayList??>${informationdisplayList.totalPages}<#else>0</#if> //总页数
			,curr:<#if informationdisplayList??>${informationdisplayList.number+1}<#else>0</#if>
			,groups: 5 //连续显示分页数
			,jump:function(data , first){
				if(!first){
					location.href = "/admin/informationdisplay/list.html?p="+data.curr ;
				}
			}
	   });
	
	  
	});
	</script>